#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
		int ans = 0;
		char s[10];
		for(int i = 0;i<n;i++)
		{
			scanf("%s",s);
			if(s[0]=='+'||s[2]=='+') ans++;
			else ans--;
		}
		printf("%d\n",ans);
	}
}
